package com.jiujichina;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.Banner;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * Created by liyi on 2018/5/15.
 */
@EnableTransactionManagement
@SpringBootApplication
@ComponentScan(basePackages={"com.jiujichina"})
@MapperScan("com.jiujichina.mapper*")
public class UserApiApplication extends SpringBootServletInitializer implements CommandLineRunner {

    public static void main(String[] args) {
        SpringApplication app = new SpringApplication(UserApiApplication.class);
        app.setBannerMode(Banner.Mode.OFF);
        app.run(args);
    }



    @Override
    public void run(String... strings) throws Exception {
        System.out.println("springboot启动完成！");
    }

}
